package com.zjny.constant;

import java.util.regex.Pattern;

/**
 * <p>
 * 工具类涉及到的正则
 * </p>
 *
 * @author cui haida
 * 2024/04/30/10:21
 */
public class ToolRegexConstant {
    /**
     * 数字
     */
    public static Pattern NUMBER_PATTERN = Pattern.compile("[一二三四五六七八九十1-9]+");

    /**
     * 数字正则
     */
    public static final String DIGIT_REGEX = "\\d+(\\.\\d+)?";

    /**
     * 整数正则
     */
    public static final String NUMBER_REGEX = "[0-9]+";

    /**
     * 首字母是汉字的正则
     */
    public static final String CHINESE_REG = "[一-龥].*";
}
